package com.sun.enhancekafka;

import org.apache.kafka.clients.admin.NewTopic;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.kafka.config.TopicBuilder;

@SpringBootApplication
public class EnhanceKafkaApplication {

    public static void main(String[] args) {
        SpringApplication.run(EnhanceKafkaApplication.class, args);
    }

    @Bean
    public NewTopic topicHello(){
       return TopicBuilder.name("myKafka").build();
    }

}
